package com.loongtech.bi.entity.bigr;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "bigr_pay_situation")
public class PaySituation implements Serializable {
    private final static long serialVersionUID = 2L;

    @Id
    private String day; // 日期
    @Id
    private String userid;
    @Id
    private String channel;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int category;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastpayday;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastlastpayday;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float paychange;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastqian;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastlastqian;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float qianchange;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int sevennotpay;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int fourteennotpay;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastpaycount;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int lastlastpaycount;

    public String getKey() {
        return  day + "-" + userid + "-" + channel;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDay() {
        return day;
    }

    public String getUserid() {
        return userid;
    }

    public String getChannel() {
        return channel;
    }

    public int getCategory() {
        return category;
    }

    public int getLastpayday() {
        return lastpayday;
    }

    public int getLastlastpayday() {
        return lastlastpayday;
    }

    public float getPaychange() {
        return paychange;
    }

    public int getLastqian() {
        return lastqian;
    }

    public int getLastlastqian() {
        return lastlastqian;
    }

    public float getQianchange() {
        return qianchange;
    }

    public int getSevennotpay() {
        return sevennotpay;
    }

    public int getFourteennotpay() {
        return fourteennotpay;
    }

    public int getLastpaycount() {
        return lastpaycount;
    }

    public int getLastlastpaycount() {
        return lastlastpaycount;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public void setLastpayday(int lastpayday) {
        this.lastpayday = lastpayday;
    }

    public void setLastlastpayday(int lastlastpayday) {
        this.lastlastpayday = lastlastpayday;
    }

    public void setPaychange(float paychange) {
        this.paychange = paychange;
    }

    public void setLastqian(int lastqian) {
        this.lastqian = lastqian;
    }

    public void setLastlastqian(int lastlastqian) {
        this.lastlastqian = lastlastqian;
    }

    public void setQianchange(float qianchange) {
        this.qianchange = qianchange;
    }

    public void setSevennotpay(int sevennotpay) {
        this.sevennotpay = sevennotpay;
    }

    public void setFourteennotpay(int fourteennotpay) {
        this.fourteennotpay = fourteennotpay;
    }

    public void setLastpaycount(int lastpaycount) {
        this.lastpaycount = lastpaycount;
    }

    public void setLastlastpaycount(int lastlastpaycount) {
        this.lastlastpaycount = lastlastpaycount;
    }
}
